<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%@ include file="../../header.jsp" %>
</head>
<body>

 <form id="formUpd" class="layui-form">
 


 <div class="layui-form-item">
   
     <label class="layui-form-label"></label>
        <div class="layui-input-block"> 
        </div>
 </div>
 <div class="layui-form-item">
   
     <label class="layui-form-label">课程编号</label>
        <div class="layui-input-block"> 
        <input type= "text" name="courseId" readonly value='<%=request.getParameter("id") %>' class="layui-input" style="width: 150px;"></input>
        </div>
 </div>
 

 
<div class="layui-form-item">
   <label class ="layui-form-label">课程名称</label>
   <div class="layui-input-block">
   <input type="text" name="courseName" value='<%=request.getParameter("name")%>'  class="layui-input" style="width:150px">
   
   </div>
   
</div>

   
  <div class="layui-form-item">
   <label class ="layui-form-label">上课时间</label>
   <div class="layui-input-block">
   <input type="text" name="time" value= "<%=request.getParameter("time") %>"  class="layui-input" style="width:150px">
   
   </div>

</div>
  <div class="layui-form-item">
   <label class ="layui-form-label">学分绩点</label>
   <div class="layui-input-block">
   <input type="text" name="gradePoint" value= "<%=request.getParameter("gradePoint") %>"  class="layui-input" style="width:150px">
   
   </div>

</div>
  <div class="layui-form-item">
   <label class ="layui-form-label">教师工号</label>
   <div class="layui-input-block">
   <input type="text" name="teacherId" value= "<%=request.getParameter("teacherId") %>"  class="layui-input" style="width:150px">
   
   </div>

</div>



  <div class="layui-form-itme">
   <div class="layui-input-block">
   <input type="javascript:;"  class="layui-btn" onclick="close()" value="关闭" style="width:80px" ></input>
   <button type="reset"  title="重置"  class="layui-btn">重置</button>
     <input name ="action" type="button"  value = "修改"  lay-submit lay-filter="update"   style="width:80px"  class="layui-btn"></input>
  
   </div>
   
   
</div>


 </form>

</body>

</body>

<script src="../../static/js/base.js"></script>
<script type="text/javascript">





formSubmit("/StudentMangers/CourseServlet","submit(update)","json",function(data){
	if(data=="1"){

		layer.msg("修改成功",close);
		
		
	}else{
		layer.msg("修改失败");
	}
})






   
</script>
</html>